package com.zhongyu.comm.api;

import com.zhongyu.comm.pojo.Item;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDateTime;
import java.util.List;

public interface ItemApi {

    @RequestMapping("/itemApi/findTopN")
    List<Item> findTopN(@RequestParam("itemTypeId") Integer ItemTypeId, @RequestParam("top") Integer top);

    @RequestMapping("/itemApi/findrejiemu")
    List<Item> findrejiemu(@RequestParam("itemTypeId") Integer ItemTypeId);

    @RequestMapping("/itemApi/findById")
    Item findById(@RequestParam("id")Integer id);

    @RequestMapping("/itemApi/findAll")
    List<Item> findAll();

    @RequestMapping("/itemApi/findBySyncTime")
    List<Item>findBySyncTime(LocalDateTime syncTime);
}
